package scatours.client.impl;

import java.math.BigDecimal;

import org.oasisopen.sca.annotation.Reference;
import org.oasisopen.sca.annotation.Service;

import com.tuscanyscatours.Bookings;
import com.tuscanyscatours.Checkout;

@Service(Runnable.class)
public class TestClientImpl {
	@Reference
	protected Bookings bookings;
	@Reference
	protected Checkout checkout;
	
	public void run(){
		String bookingCode= bookings.newBooking("FS1APR4", 1);
		System.out.println("Booking code is "+ bookingCode);
		checkout.makePayment(new BigDecimal("1995.00"), "1234567843218765 10/10");
	}

}
